<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="importTag"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="/WEB-INF/tld/mallutil.tld" prefix="mu" %>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@page import="org.apache.commons.lang.math.RandomUtils"%>
<c-rt:set var="hostName" value='<%=request.getServerName()%>'/>
<c-rt:set var="frontHtmlPath" value='<%=ServerValue.getFrontApachePath()%>'/>
<c-rt:set var="frontContentHtmlPath" value='<%=ServerValue.getFrontContentHtmlPath()%>'/>
<c-rt:set var="imgDomain" value='<%=ServerValue.getImgDomain()%>'></c-rt:set>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.flash.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.random.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/index2.js"></script>
<script type="text/javascript" src="${imgDomain}/js/rec.js">
{
"mid":27,
"pid":"home",
"rcat":"<%=ServerValue.getFrontTopCategoryIdList()%>",
<c-rt:if test="${!empty mu:memberId()}">
"uid":"${mu:memberId()}",
</c-rt:if>
"layout":"home"
}
</script>
<script src="/js/jquery.lazyload.yaodian100.js"/>"></script>
<script>
	$(function(){
		var mainAdImages = $(".mainad").find("img");
		var lazyLoadImages = $("img").not(mainAdImages);
		lazyLoadImages.lazyload({
			placeholder : "${imgDomain}/images/none1.gif"
			,failurelimit : 300
		});
	})
</script>

<div class="content">	
	<importTag:static path="${frontContentHtmlPath}IDX/IDX_MAINGOLD_V2.html"/>
  <c-rt:set var="hotSaleNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="hotSale"><importTag:static path="${frontContentHtmlPath}IDX/IDX_HOTSALE_V2_${hotSaleNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty hotSale}">${hotSale}</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_HOTSALE_V2_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	<c:if test="${fn:endsWith(hostName, 'yaodian100.com')}">
	  <div class="barlarge">
			<script type="text/javascript">		
		 		GA_googleFillSlot("yd100_00_center_image_01");	 	
			</script>
	  </div>
	  </c:if>
	<c-rt:set var="saleTopNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="saleTop"><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V2_TOP_${saleTopNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty saleTop}">${saleTop}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V2_TOP_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="saleMidNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="saleMid"><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V2_MID_${saleMidNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty saleMid}">${saleMid}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V2_MID_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="saleBtmNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="saleBtm"><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V2_BTM_${saleBtmNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty saleBtm}">${saleBtm}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_SALE_V2_BTM_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c:if test="${fn:endsWith(hostName, 'yaodian100.com')}">
	   <div class="db-banner">
	    	<script type="text/javascript">    	
		 		GA_googleFillSlot("yd100_00_lower_twins_image_01");
		 		GA_googleFillSlot("yd100_00_lower_twins_image_02");	 	
			</script>
	   </div>
   </c:if>
	<div class="pdcalist">
		<importTag:static path="${frontHtmlPath}${hostName}/pages/IDX/CATEGORY.html"/>
	</div>
</div>
<div class="right-bar">
	<importTag:static path="${frontContentHtmlPath}IDX/NEWS.html"/>
	<importTag:static path="${frontContentHtmlPath}IDX/IDX_TIME_LIMIT_SALE.html"/>
	<c:if test="${fn:endsWith(hostName, 'yaodian100.com')}">
		<div class="rt-ad">
			<script type="text/javascript">		
		 		GA_googleFillSlot("yd100_00_urnew_image_01");
		 	
			</script>		
		</div>
	</c:if>
	<c-rt:set var="goldFourNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="goldFour">
		<importTag:static path="${frontContentHtmlPath}IDX/IDX_GOLDFOUR_V2_${saleTopNum}.html"/>
	</c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty goldFour}">
			${goldFour}
		</c-rt:when>
		<c-rt:otherwise>
			<importTag:static path="${frontContentHtmlPath}IDX/IDX_GOLDFOUR_V2_1.html"/>
		</c-rt:otherwise>
	</c-rt:choose>
	
	<importTag:static path="${frontContentHtmlPath}IDX/IDX_RANKINGLIST_V2_1.html"/>
	
	<div id="brandarea">
		<importTag:static path="${frontHtmlPath}/pages/BRAND/IDX.html"/>
	</div>
	<c-rt:set var="infoNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="info"><importTag:static path="${frontContentHtmlPath}IDX/IDX_INFO_V2_${infoNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty info}">${info}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_INFO_V2_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c-rt:set var="broadCastNum"><%=RandomUtils.nextInt(3)+1%></c-rt:set>
	<c-rt:set var="broadCast"><importTag:static path="${frontContentHtmlPath}IDX/IDX_BROADCAST_V2_${broadCastNum}.html"/></c-rt:set>
	<c-rt:choose>
		<c-rt:when test="${not empty broadCast}">${broadCast}</c-rt:when>
		<c-rt:otherwise><importTag:static path="${frontContentHtmlPath}IDX/IDX_BROADCAST_V2_1.html"/></c-rt:otherwise>
	</c-rt:choose>
	<c:if test="${fn:endsWith(hostName, 'yaodian100.com')}">
	  <div class="rt-bn-end">
	  	<script type="text/javascript">  		
				GA_googleFillSlot("yd100_00_lrnew_image_01");			
			</script>
	  </div>
	  </c:if>
</div>
<span id="systemTime" style="display:none;"><%=System.currentTimeMillis()/1000%></span>